package com.itheima.a03staticdemo01;

import java.util.ArrayList;

public class StudentTest {
    public static void main(String[] args) {
        ArrayList<Student> stu = new ArrayList<>();

        Student s1 = new Student("张三", 20, "男");
        stu.add(s1);
        Student s2 = new Student("李四", 21, "女");
        stu.add(s2);
        Student s3 = new Student("王五", 22, "男");
        stu.add(s3);

        System.out.println(GetMax.getMax(stu));;
    }
}
